package com.ruoyi.oa.service;

import com.ruoyi.oa.domain.OaProject;
import com.ruoyi.oa.domain.OaPurchaseStamp;
import com.ruoyi.oa.domain.vo.OaPurchaseStampVo;
import com.ruoyi.oa.domain.bo.OaPurchaseStampBo;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.core.domain.PageQuery;

import java.util.Collection;
import java.util.List;

/**
 * 盖章申请Service接口
 *
 * @author ruoyi
 * @date 2023-04-25
 */
public interface IOaPurchaseStampService {

    /**
     * 查询盖章申请
     */
    OaPurchaseStampVo queryById(String id);

    /**
     * 通过项目名称查询盖章申请
     * @param projectName
     * @return
     */
    OaPurchaseStampVo queryByProjectName(String projectName);

    /**
     * 查询盖章申请列表
     */
    TableDataInfo<OaPurchaseStampVo> queryPageList(OaPurchaseStampBo bo, PageQuery pageQuery);

    /**
     * 查询盖章申请列表
     */
    List<OaPurchaseStampVo> queryList(OaPurchaseStampBo bo);

    /**
     * 新增盖章申请
     */
    OaPurchaseStampBo insertByBo(OaPurchaseStampBo bo);

    /**
     * 修改盖章申请
     */
    OaPurchaseStamp updateByBo(OaPurchaseStampBo bo);

    /**
     * 校验并批量删除盖章申请信息
     */
    Boolean deleteWithValidByIds(Collection<String> ids, Boolean isValid);

    /**
     * 获取没有盖章申请的项目信息
     * @return
     */
    public List<OaProject> getProjectList();
}
